package site.zhangzhuo.learn_springboot.listener;

import org.springframework.context.event.ContextClosedEvent;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

@Component
public class MyContextClosedListener {
    @EventListener
    public void handleContextClosedEvent(ContextClosedEvent event) {
        //System.out.println("MyContextClosedListener收到ContextClosedEvent事件！");
    }
}
